home *** CD-ROM | disk | FTP | other *** search
- #include<hold/anim.h>
-
- /* 000 */ void dowhile_control(void){
- /* 001 */ int guard = 3;
- /* 002 */ int count = 0;
-
- a_func("dowhile_control",0);
- a_intini(guard,"guard",1);
- a_intini(count,"count",2);
- a_show(3);
- /* 003 */ do {
- /* 004 */ guard--;
- a_intass("guard","guard-1",4);
- /* 005 */ count++;
- a_intass("count","count+1",5);
- a_intcomp("guard>0",6);
- /* 006 */ } while(guard>0);
- a_show(7);
- /* 007 */ do {
- /* 008 */ guard++;
- a_intass("guard","guard+1",8);
- /* 009 */ count--;
- a_intass("count","count-1",9);
- a_intcomp("guard<0",10);
- /* 010 */ } while(guard<0);
- a_show(11);
- /* 011 */ do {
- /* 012 */ guard++;
- a_intass("guard","guard+1",12);
- /* 013 */ count--;
- a_intass("count","count-1",14);
- a_intcomp("guard<3",14);
- /* 014 */ } while(guard<3);
- /* 015 */ }
-